.class public Lorg/microemu/midp/media/audio/ToneInfo;
.super Ljava/lang/Object;
.source "ToneInfo.java"


# instance fields
.field private frequency:I

.field private lengthOfTime:I

.field private sleepDelay:I

.field private volume:I


# direct methods
.method public constructor <init>()V
    .locals 1

    .prologue
    .line 31
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 32
    const/16 v0, 0x64

    invoke-virtual {p0, v0}, Lorg/microemu/midp/media/audio/ToneInfo;->setVolume(I)V

    .line 33
    return-void
.end method


# virtual methods
.method public getFrequency()I
    .locals 1

    .prologue
    .line 53
    iget v0, p0, Lorg/microemu/midp/media/audio/ToneInfo;->frequency:I

    return v0
.end method

.method public getLengthOfTime()I
    .locals 1

    .prologue
    .line 63
    iget v0, p0, Lorg/microemu/midp/media/audio/ToneInfo;->lengthOfTime:I

    return v0
.end method

.method public getSleepDelay()I
    .locals 1

    .prologue
    .line 43
    iget v0, p0, Lorg/microemu/midp/media/audio/ToneInfo;->sleepDelay:I

    return v0
.end method

.method public getVolume()I
    .locals 1

    .prologue
    .line 73
    iget v0, p0, Lorg/microemu/midp/media/audio/ToneInfo;->volume:I

    return v0
.end method

.method public setFrequency(I)V
    .locals 0
    .parameter "frequency"

    .prologue
    .line 58
    iput p1, p0, Lorg/microemu/midp/media/audio/ToneInfo;->frequency:I

    .line 59
    return-void
.end method

.method public setLengthOfTime(I)V
    .locals 0
    .parameter "lengthOfTime"

    .prologue
    .line 68
    iput p1, p0, Lorg/microemu/midp/media/audio/ToneInfo;->lengthOfTime:I

    .line 69
    return-void
.end method

.method public setSleepDelay(I)V
    .locals 0
    .parameter "sleepDelay"

    .prologue
    .line 48
    iput p1, p0, Lorg/microemu/midp/media/audio/ToneInfo;->sleepDelay:I

    .line 49
    return-void
.end method

.method public setVolume(I)V
    .locals 0
    .parameter "volume"

    .prologue
    .line 78
    iput p1, p0, Lorg/microemu/midp/media/audio/ToneInfo;->volume:I

    .line 79
    return-void
.end method

.method public toString()Ljava/lang/String;
    .locals 2

    .prologue
    .line 83
    new-instance v0, Ljava/lang/StringBuffer;

    invoke-direct {v0}, Ljava/lang/StringBuffer;-><init>()V

    const-string v1, "Frequency: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {p0}, Lorg/microemu/midp/media/audio/ToneInfo;->getFrequency()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v1, " LengthOfTime: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {p0}, Lorg/microemu/midp/media/audio/ToneInfo;->getLengthOfTime()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v1, " SleepDelay: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {p0}, Lorg/microemu/midp/media/audio/ToneInfo;->getSleepDelay()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    const-string v1, " Volume: "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(Ljava/lang/String;)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {p0}, Lorg/microemu/midp/media/audio/ToneInfo;->getVolume()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuffer;->append(I)Ljava/lang/StringBuffer;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuffer;->toString()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method
